package com.example.demo.service.serviceImpl;

import com.example.demo.mapper.SampleMapper;
import com.example.demo.model.Sample;
import com.example.demo.service.SampleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SampleServiceImpl implements SampleService {
    @Resource
    SampleMapper sampleMapper;
    @Override
    public List<Sample> getAllSample() {
        return sampleMapper.selectAllSample();
    }

    @Override
    public List<Sample> selectAllSample() {
        return sampleMapper.selectAllSample();
    }

    @Override
    public Sample getSampleById(Long id) {
        return sampleMapper.selectByPrimaryKey(id);
    }
}
